<template>
  <div>
    <h1>微博首页</h1>
    <div>
      <a href="javascript:void(0)" @click="reg()">注册</a>
      <a href="javascript:void(0)" @click="login()">登录</a>
    </div>
  </div>
</template>

<script>

export default {
  data(){
    return{

    }
  },
  methods:{
    reg(){
      //跳转到注册页面
      this.$router.push('/reg')
    },
    login(){
      //跳转到登录
      this.$router.push('/login')
    }
  }
}
</script>
